home *** CD-ROM | disk | FTP | other *** search
- function initialize()
- {
- var _loc1_ = _root;
- s = 0;
- x = 0;
- while(x < mod_data.length)
- {
- temp_status = 0;
- _loc1_["m" + (x + 1)].gotoAndStop("module_c");
- _loc1_["m" + (x + 1)].description = mod_data[x][0];
- if(s + 1 >= 10)
- {
- _loc1_["m" + (x + 1)].sco = "sco0" + (s + 1);
- _loc1_["m" + (x + 1)].sco_num = s + 1;
- }
- else
- {
- _loc1_["m" + (x + 1)].sco = "sco00" + (s + 1);
- _loc1_["m" + (x + 1)].sco_num = s + 1;
- }
- i = 1;
- while(i < mod_data[x].length)
- {
- _loc1_["m" + (x + 1) + "_t" + i].gotoAndStop("topic_c");
- _loc1_["m" + (x + 1) + "_t" + i].description = mod_data[x][i];
- _loc1_["m" + (x + 1) + "_t" + i].indicator.gotoAndStop(course_status_array[s]);
- if(s + 1 >= 10)
- {
- _loc1_["m" + (x + 1) + "_t" + i].sco = "sco0" + (s + 1);
- _loc1_["m" + (x + 1) + "_t" + i].sco_num = s + 1;
- }
- else
- {
- _loc1_["m" + (x + 1) + "_t" + i].sco = "sco00" + (s + 1);
- _loc1_["m" + (x + 1) + "_t" + i].sco_num = s + 1;
- }
- switch(course_status_array[s])
- {
- case "n":
- temp_status += 0;
- break;
- case "i":
- temp_status += 50;
- break;
- case "c":
- temp_status += 100;
- }
- s++;
- i++;
- }
- if(temp_status == 0)
- {
- _loc1_["m" + (x + 1)].indicator.gotoAndStop("n");
- }
- if(temp_status > 0 && temp_status < (mod_data[x].length - 1) * 100)
- {
- _loc1_["m" + (x + 1)].indicator.gotoAndStop("i");
- }
- if(temp_status == (mod_data[x].length - 1) * 100)
- {
- _loc1_["m" + (x + 1)].indicator.gotoAndStop("c");
- }
- x++;
- }
- if(Number(_loc1_.current_topic) <= 1)
- {
- _loc1_.m1.selected.gotoAndStop("g_tour");
- _level0.current_module = 0;
- }
- if(Number(_loc1_.current_topic) >= 2 && Number(_loc1_.current_topic) <= 4)
- {
- _loc1_["m2_t" + (Number(_loc1_.current_topic) - 1)].selected.gotoAndStop("on");
- _level0.current_module = 1;
- }
- if(Number(_loc1_.current_topic) > 4 && Number(_loc1_.current_topic) <= 8)
- {
- _loc1_["m3_t" + (Number(_loc1_.current_topic) - 4)].selected.gotoAndStop("on");
- _level0.current_module = 2;
- }
- if(Number(_loc1_.current_topic) > 8 && Number(_loc1_.current_topic) <= 12)
- {
- _loc1_["m4_t" + (Number(_loc1_.current_topic) - 8)].selected.gotoAndStop("on");
- _level0.current_module = 3;
- }
- _level0.current_sco = Number(_loc1_.current_topic);
- }
-